import React from "react";
import useLog from "./hooks/useLog";

const Home = () => {
  // useEffect(() => {
  //   console.log("Home组件运行了");
  // });
  useLog("Home");
  return <h2>Home组件</h2>;
};

const About = () => {
  // useEffect(() => {
  //   console.log("About组件运行了");
  // });
  useLog("About");
  return <h2>About组件</h2>;
};

export default function App() {
  return (
    <div>
      <Home></Home>
      <About></About>
    </div>
  );
}
